package org.hepeng.hope.dao

import org.hepeng.hope.CornerstoneApplicationTests
import org.hepeng.hope.entity.RoleAuthority
import org.hepeng.hope.entity.RoleAuthorityPK
import org.junit.jupiter.api.Test
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.test.context.ActiveProfiles


@ActiveProfiles(profiles = ["dev"])
internal class RoleAuthorityDAOTest : CornerstoneApplicationTests() {

    @Autowired lateinit var dao: RoleAuthorityDAO

    @Test
    fun insertTest() {
        dao.save(RoleAuthority(RoleAuthorityPK(1 , 1)))
        dao.save(RoleAuthority(RoleAuthorityPK(1, 2)))
        dao.save(RoleAuthority(RoleAuthorityPK(1, 3)))
        dao.save(RoleAuthority(RoleAuthorityPK(1, 4)))


    }

}